package com.tfjybj.itoo.exam.provider.service.impl;

import com.dmsdbj.itoo.tool.base.service.impl.BaseServicePlusImpl;
import com.tfjybj.itoo.exam.entity.EvaluationMainEntity;
import com.tfjybj.itoo.exam.model.EvaluationMainModel;
import com.tfjybj.itoo.exam.provider.dao.EvaluationMainDao;
import com.tfjybj.itoo.exam.provider.service.EvaluationMainService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TeEvaluationMainService接口实现类
 * ${base}表
 *
 * @author 杨江涛
 * @version 2.0.0
 * @since 2.0.0 2018-12-18 18:19:48
 */
@Service("evaluationMainService")
public class EvaluationMainServiceImpl extends BaseServicePlusImpl<EvaluationMainDao, EvaluationMainEntity> implements EvaluationMainService {
	
	//region 模板生成

    @Resource
    private EvaluationMainDao evaluationMainDao;



    //endregion

    /* **********************************以下为非模板生成的内容********************************* */

    @Override
    public boolean insertTeEvaluationMain(EvaluationMainEntity evaluationMainEntity) {
        return this.save(evaluationMainEntity);
    }

    /**
     * 根据题干id查询题干信息
     * @param id 题干id
     * @return 题干信息
     * @author 杨江涛
     * @since 2019-1-15 20:54:16
     */
    @Override
    public List<EvaluationMainModel> queryTeEvaluationMain(String id) {
        return evaluationMainDao.queryTeEvaluationMain(id);
    }
}
